package com.lkd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: Z.lx
 * @Date: 2025/8/21 20:13
 * @Description:
 **/
@Data
@TableName("tb_channel")
public class Channel {
    @TableId(type= IdType.AUTO)
    private Integer channelId;//货道ID
    private String channelCode;//货道编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;//商品ID
    private Integer vmId;//售货机ID
    private String innerCode;//售货机编码
    private Integer maxCapacity;//最大容量
    private Integer price;//价格
    private Integer currentCapacity;//当前容量
    private LocalDateTime lastSupplyTime;//上次补货时间
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
}
